package com.sdj.quick.web.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.sdj.quick.web.dto.UnbundledCardDto;

/***
 * 解绑银行卡
 * @author Administrator
 *
 */

@Controller
@RequestMapping("/unbundled")
public class UnbundledCardController extends BaseController{
	
	@RequestMapping("/toUnbundled")
	public String toUnbundled(){
		return "unbundledCard";
	}

	@RequestMapping(value="/unbundledCard",method=RequestMethod.POST)
	public @ResponseBody String unbundledCard(UnbundledCardDto unbundledCardDto){
		logger.info("快捷绑卡解绑发送请求参数对象:【{}】",unbundledCardDto);
		String merKey = unbundledCardDto.getMerKey();
		String path = quickConfig.getUnbundledCardUrl();
		Map<String,String> map = getPostResult(path,merKey,unbundledCardDto);
		return JSON.toJSONString(map);
	}
}
